package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Material;

public interface MaterialMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Material record);

    int insertSelective(Material record);

    Material selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Material record);

    int updateByPrimaryKey(Material record);
    
    //自定义接口
    List<Material> findByList(Material record);
    List<Material> findByListForPage(Material record);
    int findByCount(Material record);
	Material findByMaterialcode(String materialcode);
	Material findByMaterialname(String materialname);
}